n1 = 100

def f1():
    n1 = 600
    n2 = 200
    print(n1,n2)

f1() # 600 200


def f2():
    global n1
    n1 = 400


f2()
print(n1) # 400

